package com.xkdx.guangguang.fragment.my.setup;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;

import com.xkdx.caipiao.R;
import com.xkdx.guangguang.module.statics.IConstants;

public class SuggestFragment extends Fragment {

	// String url = Static.address + "otherInterface/advice.php";
	EditText title, content;
	Button submit, back;
	boolean isSubmit = false;
	View view;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		view = inflater.inflate(R.layout.suggest, container, false);
		IConstants.hideInputMethodAways(getActivity(), view);
		findView();
		setOnclick();

		return view;
	}

	private void findView() {
		title = (EditText) view.findViewById(R.id.editText1);
		content = (EditText) view.findViewById(R.id.editText2);
		back = (Button) view.findViewById(R.id.suggest_back);
		submit = (Button) view.findViewById(R.id.suggest_submit);

	}

	private void setOnclick() {
		back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				FragmentManager fm = getFragmentManager();
				fm.popBackStack();
			}
		});
		submit.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub

			}
		});

	}

	

	
}
